/**
 * 
 */
package com.java.test.user.dto;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

/**
 * @author Administrator 会员等级
 */
public class MemberGradeInfo implements RowMapper<MemberGradeInfo> {

	private int id;

	private String memberGradeName;

	private int upLvExp;
	
	private String content;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMemberGradeName() {
		return memberGradeName;
	}

	public void setMemberGradeName(String memberGradeName) {
		this.memberGradeName = memberGradeName;
	}

	public int getUpLvExp() {
		return upLvExp;
	}

	public void setUpLvExp(int upLvExp) {
		this.upLvExp = upLvExp;
	}
	
	

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public MemberGradeInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
		MemberGradeInfo info = new MemberGradeInfo();	
		info.setId(rs.getInt("id"));
		info.setMemberGradeName(rs.getString("member_grade_name"));
		info.setUpLvExp(rs.getInt("up_lv_exp"));
		info.setContent(rs.getString("content"));
		return info;
	}

}
